import fetch from 'common/src/utils/fetch';

function getTeacherClass(data) {
    return fetch({
        url: `/api/arrangementservice/conflict/teacherClass`,
        method: 'post',
        data: data
    });
}

function getTeacherConflict(data) {
    return fetch({
        url: `/api/arrangementservice/conflict/teacherConflict`,
        method: 'post',
        data: data
    });
}

function getTeacherSixConflict(data){
    return fetch({
        url: `/api/arrangementservice/conflict/teacherSixConflict`,
        method: 'post',
        data: data
    });
}

function getCampusConflict(data) {
    return fetch({
        url: `/api/baseresservice/occupation/conflictRecord/teacher/interval`,
        method: 'post',
        data: data
    });
}

/**
 * 根据学期，roomId,courseCode进行查询相关的教学班
 * @param {参数} data
 */
function classRoomAndCourseClass(data) {
    return fetch({
        url: `/api/arrangementservice/conflict/classRoomAndCourseClass`,
        method: 'post',
        data: data
    });
}

function getClassRoomConflict(data) {
    return fetch({
        url: `/api/baseresservice/occupation/conflictRecord/classroom/time`,
        method: 'post',
        data: data
    });
}

function getAssessmentModeConflict(data){
    return fetch({
        url: `/api/arrangementservice/conflict/assessmentModeConflict`,
        method: 'post',
        data: data
    });
}

function classTimeConflict(data) {
    return fetch({
        url: `/api/arrangementservice/conflict/classTimeConflict`,
        method: 'post',
        data: data
    });
}



export default {
    getTeacherClass,
    getTeacherConflict,
    getCampusConflict,
    classRoomAndCourseClass,
    getClassRoomConflict,
    getTeacherSixConflict,
    getAssessmentModeConflict,
    classTimeConflict
};
